package net.xuele.learn.base;

/**
 * Created by  on 2019/4/25 0025.
 */
public class GcCase {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        for (int i = 0; i < 1000; i++) {
            allocate_1M();
        }
        long end = System.currentTimeMillis();
        System.out.println("总耗时：" + (end - start));
    }

    private static void allocate_1M() {

        byte[] _1M = new byte[1024 * 1000];
    }
}
